<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.org/schema/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:p="http://primefaces.org/ui" template="layout/template.xhtml">

	<ui:define name="body">
		<h:form id="loginForm">
			<p:panel header="登录">
				<h:panelGrid columns="2" cellpadding="3">
					<p:outputLabel for="username">用户名</p:outputLabel>
					<p:inputText id="username" value="#{credentials.username}" />
					<p:outputLabel for="password">密码</p:outputLabel>
					<p:password id="password" value="#{credentials.password}" />
					<p:outputLabel for="rememberMe">记住我</p:outputLabel>
					<p:selectBooleanCheckbox id="rememberMe"
						value="#{rememberMe.enabled}" />
				</h:panelGrid>
				<p>
					<i>注 - </i> 登录用的用户名'admin'，密码为空。
				</p>
			</p:panel>
			<div class="actionButtons">
				<h:commandButton id="submit" value="登录" action="#{identity.login}" />
			</div>
		</h:form>
	</ui:define>
</ui:composition>
